package com.samphanie.auiu.admin.component;

import com.samphanie.auiu.admin.service.ISysResourceService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * 资源与角色访问对应关系操作组件
 * @author ZSY
 * @email 1451691457@qq.com
 */
@Component
@RequiredArgsConstructor
public class ResourceRoleRulesHolder {

    private final ISysResourceService resourceService;

    @PostConstruct
    public void initResourceRolesMap(){
        resourceService.initResourceRolesMap();
    }
}
